package com.steak.spring.cyclicdependence.prototype;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
public class UserService {
    private PostService postService;

    public void setPostService(PostService postService) {
        this.postService = postService;
    }

    public void ok(){
        System.out.println("ok");
    }
}
